package org.luxor.commons.workflow.entity;

import com.google.common.collect.Lists;
import org.activiti.bpmn.model.Activity;
import org.activiti.bpmn.model.Gateway;
import org.activiti.bpmn.model.SubProcess;
import org.springframework.util.CollectionUtils;

import java.util.ArrayList;

/**
 * 流转途径范围
 *
 * @author Mr.yan  @date 2022/8/16
 */
@Deprecated
public class TransferWayScope {
    /**
     * 途径的网关节点
     */
    private ArrayList<Gateway> gatewayList;

    /**
     * 途径的子流程节点
     */
    private ArrayList<SubProcess> subProcessList;

    /**
     * 途径的所有办理节点
     */
    private ArrayList<Activity> activityList;

    public TransferWayScope() {
        this.gatewayList = Lists.newArrayList();
        this.subProcessList = Lists.newArrayList();
        this.activityList = Lists.newArrayList();
    }

    public boolean isWayGateway() {
        return !CollectionUtils.isEmpty(gatewayList);
    }

    public boolean isWaySubProcess() {
        return !CollectionUtils.isEmpty(subProcessList);
    }

    public ArrayList<Gateway> getGatewayList() {
        return gatewayList;
    }

    public void setGatewayList(ArrayList<Gateway> gatewayList) {
        this.gatewayList = gatewayList;
    }

    public ArrayList<SubProcess> getSubProcessList() {
        return subProcessList;
    }

    public void setSubProcessList(ArrayList<SubProcess> subProcessList) {
        this.subProcessList = subProcessList;
    }

    public ArrayList<Activity> getActivityList() {
        return activityList;
    }

    public void setActivityList(ArrayList<Activity> activityList) {
        this.activityList = activityList;
    }
}
